package com.mary.cli.example;


import picocli.CommandLine;

/**
 * @SystemName mary-generator-basic
 * @ModuleName com.mary.cli.example
 * @ClassName ASCIIArt
 * @Author Zhangml
 * @Date 2025/1/22 17:19
 * @Version v1.0
 * @Description
 **/
@CommandLine.Command(name="ASCIIArt",version = "ASCIIArt 1.0",mixinStandardHelpOptions = true)
public class ASCIIArt implements Runnable{
    @CommandLine.Option(names = {"-s","--font-size"},description = "Font size")
    int fontSize = 20;
    @CommandLine.Parameters(paramLabel = "<word>",defaultValue = "Hello,picocli",description = "Words to be translated into ASCII Art")
    private String[] words ={"Hello","picoli"};
    @Override
    public void run() {
        System.out.println("fontSize = "+fontSize);
        System.out.println("words = "+String.join(",",words));

    }

    public static void main(String[] args) {
        int exxitCode = new CommandLine(new ASCIIArt()).execute(args);
        System.exit(exxitCode);
    }
}
